package fm.last.api
{
    import fm.last.BaseTC;
    

    public class RadioAPITest extends BaseTC
    {
        
        
        public function RadioAPITest()
        {
            super();
            /* A seesion from subscriber is necessary !!! */ 
            addTest("testGetPlaylist");
            addTest("testTune");                                  
        }
     
        public function testGetPlaylist():void
        {  
            lfm_service.radio.getPlaylist(expectedPattern("/lfm/playlist"), unexpectedError);          
        }       
        
        public function testTune():void
        {                        
            lfm_service.radio.tune(expectedPattern("/lfm"),unexpectedError,"http://www.last.fm/listen/artist/Cher/similarartists");
        }              
     
    }
}